﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ToDo.Shared
{
    public class ApiResponse
    {
        public ApiResponse(string title, bool status = false)
        {
            this.Title = title;
            this.Status = status;
        }
        public ApiResponse(bool status, object result)
        {
            this.Status = status;
            this.Result = result;
        }
        public string? Title { get; set; }

        public bool Status { get; set; }

        public object? Result { get; set; }
    }

    public class ApiResponse<T>
    {
        public bool Status { get; set; }

        public T? Result { get; set; }
    }
}